/*
 * @Author: Li Zengkun
 * @Date: 2022-09-12 19:35:01
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-13 21:14:54
 * @Description: 
 */
import axios from 'axios'

// 删除指定id的幻灯片
const remove = (data) => axios.post(`/slide/remove`, data)


// 启用/禁用幻灯片
const usable = (data) => axios.post(`/slide/usable`, data)


// 添加新的幻灯片
const add = (data) => axios.post(`/slide/add`, data)


// 编辑指定id幻灯片
const edit = (data) => axios.post(`/slide/edit`, data)


// 获取所有幻灯片列表
const list = (params) => axios.get(`/slide/list`, { params })

export default {
    remove,
    usable,
    add,
    edit,
    list
}